package com.example.zg.zg_312_ordering_new.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

public class MyAdapter extends FragmentPagerAdapter {
    private List<String>list;
    public MyAdapter(FragmentManager fm,List<String>list) {
        super(fm);
        this.list=list;
    }

    @Override
    public Fragment getItem(int position) {
      //  return BlankFragment.newInstance(list.get(position));
        return null;
    }

    @Override
    public int getCount() {
        return list.size();
    }

    @Override
    public CharSequence getPageTitle(int position){
        return list.get(position);
    }
}
